import router from '.'
import { getToken } from '@/utils/token'
router.beforeEach((to) => {
    if (!getToken()) {
        if (to.name !== 'Login') {
            return { name: 'Login' }
        }
    }
})